<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns="http://www.w3.org/1999/xhtml"
                template="./../home.xhtml"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:define name="content">
        <br/>
        <div class="col-lg-12">
            <h3 class="page-header" id="comercio">
                Gestion de Tipo Expediente
                <h:link value="Regresar a Listado" outcome="list.xhtml" styleClass="pull-right" style="font-size: 16px; margin-right: 30px;"  />
            </h3>
        </div>
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-primary">
                    <div class="panel-heading" style="font-weight: bold;">Registro de Tipo Expediente </div>
                    <div class="panel-body">
                        <h:form id="frmRegistrarMarca" styleClass="form-horizontal" >
                            <f:event type="preRenderView" listener="#{tipoControlador.initRegistrar}" />
                            <h:messages globalOnly="true" styleClass="list-group" infoClass="list-group-item list-group-item-success"
                                        errorClass="list-group-item list-group-item-danger"  />
                            <div class="form-group has-feedback">
                                <label  style="font-size: 15px;" class="col-sm-2 control-label">Nombre :</label>
                                <div class="col-sm-5">
                                    <p:inputText styleClass="form-control"  value="#{tipoControlador.tipoExpediente.nombre}" />
                                </div>
                            </div>
                            <div class="form-group has-feedback">
                                <label  style="font-size: 15px;" class="col-sm-2 control-label">Descripción :</label>
                                <div class="col-sm-5">
                                    <p:inputTextarea styleClass="form-control"  value="#{tipoControlador.tipoExpediente.descripcion}" />
                                </div>
                            </div>
                            <div class="form-group has-feedback">
                                <label  style="font-size: 15px;" class="col-sm-2 control-label">Tiempo(min) :</label>
                                <div class="col-sm-5">
                                    <p:inputMask mask="9?9999999" placeHolder="" styleClass="form-control"  value="#{tipoControlador.tipoExpediente.tiempo}" />
                                </div>
                            </div>
                            <p:commandButton value="Guardar" actionListener="#{tipoControlador.registrarTipo}" update="@form" styleClass="btn btn-primary"/>
                        </h:form>
                    </div>
                </div>
            </div>
        </div>
    </ui:define>

</ui:composition>
